<template>
  <div class="sunzi">
     <p @click="sendHuazi">我是孙子组件</p>
  </div>
</template>

<script>
export default {
  name: '',
  methods: {
     sendHuazi(){
       this.$bus.$emit('huazi','爷爷给你一车华子')
     }
  },
}
</script>

<style scoped>
   .sunzi{
       width: 200px;
       height: 100px;
       background: hotpink;
       margin: 10px auto;
   }
</style>
